cmake_minimum_required(VERSION 3.10)
project(OpenCVExample)

# 查找 OpenCV 包
find_package(OpenCV REQUIRED)

# 包含 OpenCV 的头文件路径
include_directories(${OpenCV_INCLUDE_DIRS})

# 定义源文件
add_executable(test_opencv test_opencv.cpp)

# 链接 OpenCV 库
target_link_libraries(test_opencv ${OpenCV_LIBS})

# 指定可执行程序输出的路径
set(EXECUTABLE_OUTPUT_PATH ..)
